<%@ Page Language="C#" EnableViewState="false" ValidateRequest="false" AutoEventWireup="true" 
	MasterPageFile="~/App_ThemeMasters/NoStyle/OneColumnLayout.Master" Inherits="Syrinx.Gui.AspNet.Nitobi2.NitobiBasePage" EnableEventValidation="false" %>

<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.Nitobi2" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>
<%@ Register Assembly="Articles.Gui.AspNet" Namespace="Articles.Gui.AspNet" TagPrefix="art" %>

<!--#include file="~/SiteControls/RegisterStandardControls.txt"-->
<!--#include file="../SiteControls/StandardHeaderPageContent.inc"-->
<!--#include file="../SiteControls/StandardFooterPageContent.inc"-->
<script runat="server">
	public bool PreloadFreeTextBox = false;
    public string TitleFormat = "$glgo.title$ - $gArt1.title$";
</script>

<asp:Content ID="c1" ContentPlaceHolderID="title" runat="server">
	<swf:BizProc runat="server" ID="gArt1" factoryName="genericArticles">
		<State includeSelf="true" entireTree="true" EditModeSessionKey="GlobalEdit" />
		<ParentBizProc id="loginBP"  />
	</swf:BizProc>
	<swf:BizProc runat="server" id="t" FactoryName="articleTrail">
		<ParentBizProc id="gArt1" fieldName="id" dataId="pid" />
	</swf:BizProc>
	<swf:BizProc ID="attachGroup" runat="server" FactoryName="articleAttachmentGroups">
		<ParentBizProc id="gArt1" fieldName="id" dataId="pid" />
		<State includeFiles="true" />
	</swf:BizProc>
</asp:Content>

<asp:Content ID="c2" ContentPlaceHolderID="trails" runat="server">
<div class="px11">
		<art:ArticleParentTrail runat="server" ID="ArticleParentTrail1" 
			ParentBizProcIds="t" 
			ReadOnlyTemplate="Articles.Gui.AspNet.ArticleParentTrail-Simple">
			<macros>
				<Entry name="navLink" type="String">/articles/$id$.aspx</Entry>
			</macros>
		</art:ArticleParentTrail>
</div>
		<div class="clearer"></div>
	    <br style="line-height:5px" />
		<div  >
			<span class="button4"><snc:ActionButton runat="server" ID="ActionButton1" Actions="gArt1.SwitchEdit" Text="Edit" SessionBoolSwitch="GlobalEdit"  /></span>
			<span class="button1"><snc:ActionButton runat="server" ID="ActionButton2" Actions="gArt1.SwitchTranslation" Text="Translate" SessionBoolSwitch="TranslationMode" /></span>
			<span class="button1"><snc:ActionButton runat="server" ID="ActionButton12" Actions="gArt1.TranslateArticle" Text="Auto Translate" /></span>
			<span class="button1"><snc:ActionButton runat="server" ID="ActionButton3" Actions="gArt1.AddBizObj" Text="Add" /></span>
			<span class="button6"><snc:ActionButton runat="server" ID="ActionButton4" Actions="gArt1.UpdateBizObj" Text="Update" /></span>
			<span class="button1"><snc:ActionButton runat="server" ID="ActionButton5" Actions="gArt1.CancelEdits" Text="Cancel" /></span>
			<span class="button5"><snc:ActionButton runat="server" ID="ActionButton6" Actions="gArt1.DeleteBizObj" Text="Delete" ClientClick="if(!confirm('Are you sure you want to delete?'))return false;"/></span>
			<span class="button1"><snc:ActionButton runat="server" ID="ActionButton7" Actions="gArt1.SetArticlePicture" Text="Set Image" ToolTip="Set primary media for this article" 
				PopupPage="../popups/SetArticleImagePopup.aspx" PopupHeight="535px" PopupWidth="800px" PopupTitle="Select a primary image for this article." /></span>
			<span class="button1"><snc:ActionButton runat="server" ID="ActionButton8" Actions="gArt1.GenerateFromMedia" Text="Generate" ToolTip="Generate child article from media derictory"
				PopupPage="../popups/AddArticleChildImagesPopup.aspx" PopupHeight="535px" PopupWidth="800px" PopupTitle="Add Children from Selected Media."/></span>
			<span class="button1"><snc:ActionButton runat="server" ID="ActionButton9" Actions="gArt1.GenerateFromYouTube" Text="uTubeGen" ToolTip="Generate child article from You Tube Account"
				PopupPage="../popups/PopupYouTubeGenPopup.aspx" PopupHeight="535px" PopupWidth="800px" PopupTitle="Generate articles from You Tube Account." /></span>
			<span class="button3"><snc:ActionButton runat="server" ID="ActionButton10" Actions="gArt1.MovePrev" Text="Previous" /></span>
			<span class="button3"><snc:ActionButton runat="server" ID="ActionButton11" Actions="gArt1.MoveNext" Text="Next" /></span>
			<swf:ActionButton Visible="false" runat="server" ID="_sgnup" Actions="orderBP.UpdateBizObj,membership.AddOne(FreeForumUserMembership),checkout.StartWizard,checkout.MoveNext" Text="Sign up Now" />
		</div>
<div class="clearer"></div>
</asp:Content>

<asp:Content ID="c3" ContentPlaceHolderID="mainContent" runat="server">
	<div class="articleBox">
		<art:ArticleTranslationDisplay runat="server" ID="gad1"
			ParentBizProcIds="gArt1" 
			TranslationTemplate="Articles.Gui.AspNet.ArticleTranslationRWDisplay"
			ReadOnlyTemplate="Articles.Gui.AspNet.ArticleRODisplay$metaType$"
			EditableTemplate="Articles.Gui.AspNet.ArticleRWDisplay$metaType$" >
			<macros imageRes="Medium" />
		</art:ArticleTranslationDisplay>
	</div>
    <snc:ActionButton runat="server" ID="ActionButton13" Actions="gArt1.UpdateArtForm" Text="Submit" TriggerParam="javascript:getArtFormData($(ctl00_mainContent_gad1_body))" />
    	
	<art:FileAttachmentGroupsListDisplay runat="server" ID="fat" ParentBizProcIds="attachGroup"
	CssClass="FileAttachOuterBox"
	ReadOnlyTemplate="Articles.Gui.AspNet.FileAttachmentGroupsListDisplay-Style1"/>
</asp:Content>
